package com.lingdian.study.aop;

import com.lingdian.study.TakingTrainImpl;

public class CglibTest {

	public static void main(String[] args) {
		CglibProxy cglibProxy = new CglibProxy();
		TakingTrainImpl takingTrain = (TakingTrainImpl) cglibProxy.getProxy(TakingTrainImpl.class);
		try {
			takingTrain.takeTrain("zhangsan");
		} catch (RestException e) {
			e.printStackTrace();
		}
		
	}
}
